<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>在线反馈</title>
    <link rel="stylesheet" href="/Public/css/gxxjkefu-normalize.css">
    <link href="/Public/css/animate.css" rel="stylesheet">
    <link rel="stylesheet" href="/Public/css/model.css">
    <link rel="stylesheet" href="/Public/css/pager.css">
    <link rel="stylesheet" href="/Public/css/feedback.css">
    <style>
        .user_name{
            cursor: pointer;
            color: black;
        }
        .user_name:hover{
            color: #31b0d5;
        }
    </style>
</head>
<body>
<div class="scrollbar animated fadeInRight" id="style-1" style="overflow:scroll;overflow-x:hidden;">
    <div id="main_C" style="float: left;width: 99%">
        <div class="title_info">
            <span>在线反馈</span>
        </div>
        <div class="white_bgColor notice_info">
            <div class="feedback_a_content animated fadeInRight">
                <div id="unfeedback">
                    <volist name="data" id="vo">
                        <div class="feedback_content animated fadeInRight">
                            <div style="overflow: hidden;background: #f6f6f6">
                                <div class="content_left">
                                    <span class="user_name"> <a><{$vo.username}> </a><img src="/Public/image/icon_phone.png" height="20" width="20"/></span>
                                    <span style="display: none"><{$vo.mobile}> </span>
                                    <span>  <{$vo.user_id}>  </span>
                                </div>
                                <div class="content_right">
                                    <div class="content_question">
                                        <span><{$vo.ctime}> </span>
                                        <span><{$vo.content}> </span>
                                    </div>
                                    <div class="content_reply">
                                        <span>回复数<span class="red_color">(<{$vo.back_num}>)</span></span>
                                        <span>最后回复时间：<{$vo.back_time}> </span>
                                        <input type="button" value="回复"
                                               onclick="javascrtpt:window.location.href='<{$SERVER_NAME}>/Feedback/feedback_detail?id=<{$vo.id}>'"/>
                                    </div>

                                    <div class="state_div">
                                        <img src="/Public/image/icon_end.png" height="15" width="15"/>
                                        <span><{$vo.status}> </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <hr>
                    </volist>
                </div>
                <!--分页-->
                <div style="text-align: center;margin: 100px auto 0">
                    <ul class="pagination" id="page1"></ul>
                    <div class="pageJump">
                        <span>跳转到</span>
                        <input type="text"/>
                        <span>页</span>
                        <button type="button" class="button"></button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="/Public/js/pager.js"></script>
<script src="/Public/js/jquery-3.2.1.js"></script>
<script>


    //调用父方法

    function user_info(mobile) {
        console.log('useree',mobile);
        window.parent.get_user(mobile);
    }
    //进入详情
    function detail(id) {
        console.log('3434343', id);
        window.location.href = "feedback_detail?id=" + id;
    }

    /*默认分页*/
    var fist_tol = "<{$tol}>";
    var fist_count = "<{$count}>";
    var page = "<{$page}>";
    if (page=="" || page==null){
        page=1;
    }
    var vid = "<{$vid}>";
    if (fist_count < 10) {
        $("#page1").hide();
    }
    Page({
        num: fist_tol,					//页码数
        startnum: page,				//指定页码
        elem: $('#page1'),		//指定的元素
        callback: function (n) {	//回调函数
            window.location.href="<{$SERVER_NAME}>/UserCenter/feedback_online?page="+n+"&vid="+vid;
        }
    });

</script>
</body>
</html>